const createApi = require('./createApi')
const configs = require('../config.js')
const baseURL = configs.proxy

module.exports = createApi({
  getHeaders: () => ({
    'X-Halo-Region': '',
    'X-Halo-App': 'wedding-web-hotel'
  }), // 动态设置headers
  handleError: (status, msg, error) => console.log(status, msg, error), // 自定义错误处理
  createOptions: {
    baseURL
  }
})
